package com.framework.boc.statistics.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 统计模板字段表
 * </p>
 *
 * @author Leil
 * @since 2020-12-23
 */
@TableName("CS_TEMPLATE_FIELD")
@KeySequence(value = "SEQ_TEMPLATE_FIELD", clazz = Integer.class)
@ApiModel(value="TemplateField对象", description="统计模板字段表")
public class TemplateField implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "ID", type = IdType.INPUT)
    private Integer id;

    @ApiModelProperty(value = "模板ID")
    @TableField("TEMPLATE_ID")
    private Integer templateId;

    @ApiModelProperty(value = "中文名称（表头不同层级使用/分割）")
    @TableField("CH_TITLE")
    private String chTitle;

    @ApiModelProperty(value = "字段名称")
    @TableField("FIELD_NAME")
    private String fieldName;

    @ApiModelProperty(value = "字段类型（1、文本类型|2、数值类型|3、日期类型|4、枚举类型）")
    @TableField("FIELD_TYPE")
    private Integer fieldType;

    @ApiModelProperty(value = "字段最大值（只有字段为数字类型时生效）")
    @TableField("FIELD_MAX")
    private Integer fieldMax;

    @ApiModelProperty(value = "字段最小值（只有字段为数字类型时生效）")
    @TableField("FIELD_MIN")
    private Integer fieldMin;

    @ApiModelProperty(value = "字段枚举类型（只有字段为枚举类型时生效，枚举值使用|分割）")
    @TableField("FIELD_ENUM")
    private String fieldEnum;

    @ApiModelProperty(value = "是否为筛选条件（0、否|1、是）")
    @TableField("IS_CONDITION")
    private Integer isCondition;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Integer templateId) {
        this.templateId = templateId;
    }

    public String getChTitle() {
        return chTitle;
    }

    public void setChTitle(String chTitle) {
        this.chTitle = chTitle;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public Integer getFieldType() {
        return fieldType;
    }

    public void setFieldType(Integer fieldType) {
        this.fieldType = fieldType;
    }

    public Integer getFieldMax() {
        return fieldMax;
    }

    public void setFieldMax(Integer fieldMax) {
        this.fieldMax = fieldMax;
    }

    public Integer getFieldMin() {
        return fieldMin;
    }

    public void setFieldMin(Integer fieldMin) {
        this.fieldMin = fieldMin;
    }

    public String getFieldEnum() {
        return fieldEnum;
    }

    public void setFieldEnum(String fieldEnum) {
        this.fieldEnum = fieldEnum;
    }

    public Integer getIsCondition() {
        return isCondition;
    }

    public void setIsCondition(Integer isCondition) {
        this.isCondition = isCondition;
    }

    @Override
    public String toString() {
        return "TemplateField{" +
        "id=" + id +
        ", templateId=" + templateId +
        ", chTitle=" + chTitle +
        ", fieldName=" + fieldName +
        ", fieldType=" + fieldType +
        ", fieldMax=" + fieldMax +
        ", fieldMin=" + fieldMin +
        ", fieldEnum=" + fieldEnum +
        ", isCondition=" + isCondition +
        "}";
    }
}
